package com.itao.controller;

import com.itao.feign.FeignNacosApi;
import com.itao.feign.FeignOrderApi;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author sjt
 * @CreateTime 2023/03/15 11:22
 */
@RestController
@AllArgsConstructor
public class FeignController {

    private FeignNacosApi feignNacosApi;
    private FeignOrderApi feignOrderApi;

    @GetMapping("/nacos")
    public String nacos() {
        return feignNacosApi.nacos();
    }

    @GetMapping("/order")
    public String order() {
        return feignOrderApi.order();
    }
}
